package collage.aminpage;

import java.awt.BorderLayout;
import java.awt.GridLayout;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import TOP_Version1.Top_AdminVO;

public class Main_BasicPanel extends JPanel{
	static Top_AdminVO t;
	
	
	
	// 커다란 이미지 + 선택
	public Main_BasicPanel() {
	setLayout( new BorderLayout( 0, 0 ));
	makeMainImage();
	viewAdminInfo();
		
		
	}
	
	
	
	private JLabel makeImages( String src ){
		
		JLabel mnimg = new JLabel();
		
		if ( src != null ){
		
			mnimg.setIcon( new ImageIcon( Main_BasicPanel.class.getResource( "/img/" + src + ".jpg")));
			
		}
		else {
			
		}
		
		return mnimg;
		
	}// makeImages
	
	
		
	private void makeMainImage(){
		JPanel main = new JPanel();
		main.add( makeImages( "mainimg") );
		add( main, BorderLayout.CENTER );
				
				
	}
	
	private void viewAdminInfo(){
		JPanel top = new JPanel();
				
		// JLabel id = new JLabel( t.getAdmin_name() );
		
		// top.add(id);
		add( top, BorderLayout.NORTH );
		
		
	}
	
	
	
}// class
